package com.designpattern.createpattern.demo01;

/**
 * 饿汉式单例模式
 */
public class EhanSingleton {
    private static EhanSingleton instance = new EhanSingleton();

    private EhanSingleton() {
    }

    public static EhanSingleton getInstance() {
        return instance;
    }
}
